<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的个人主页</title>
</head>
<body>
   <h1>application内置对象</h1>
   <%
      application.setAttribute("city", "北京");
      application.setAttribute("postcode", "10000");
      application.setAttribute("email", "lisi@126.com");
   %>
   
   所在城市是：<%=application.getAttribute("city") %><br>
   application中的属性有：<%
        Enumeration attributes = application.getAttributeNames();
        while(attributes.hasMoreElements()) {
        	out.println(attributes.nextElement() + "&nbsp;&nbsp;");
        }
   %><br>
   JSP(SERVLET)引擎名及版本号：<%=application.getServerInfo() %>
</body>
</html>